package com.grape.feign;

import com.grape.entity.SysUser;
import com.grape.feign.callback.UserFeignCallback;
import com.grape.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author fuhehuang
 * @email 2628279194@qq.com
 */
/**
 * user的feign接口
 */
@FeignClient(name = "system-service", fallback = UserFeignCallback.class)
public interface UserFeign {

    @GetMapping("/users/getByUserId")
    R<SysUser> getByUserId(@RequestParam(value = "userId") String userId);

}
